package baiqitun.stupro.subject.entity;

import baiqitun.stupro.common.entity.Entity;
import baiqitun.stupro.common.validate.group.SaveGroup;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 学生信息表
 * </p>
 *
 * @author kedaji
 * @since 2020-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("stupro_student_info")
public class SysStudentInfo extends Entity {

    private static final long serialVersionUID=1L;

    @NotBlank(message = "学生用户id", groups = {SaveGroup.class})
    private String userId;

    /**
     * 导师用户id
     */
    private String tutorId;
}
